package com.duoduo.springcloud.service.impl;

import com.duoduo.springcloud.dao.PaymentDao;
import com.duoduo.springcloud.entities.Payment;
import com.duoduo.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * TODO
 *
 * @author qian
 * @version 1.0
 * @date 2020/11/17 11:19
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    public int create(Payment payment){
        return paymentDao.create(payment);
    }

    public Payment getPaymentById( Long id){

        return paymentDao.getPaymentById(id);

    }

}
